package com.lagou.demo.service.impl;

import com.lagou.demo.model.Test;
import com.lagou.demo.repository.TestRepository;
import com.lagou.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("TestService")
public class TestServiceImpl implements TestService {

    @Autowired
    private TestRepository testRepository;

    @Override
    public String getTest() {
        List<Test> all = testRepository.findAll();
        return all.toString();
    }
}
